<div id="calendar">
<?php if( $drafts ): ?>
<?php echo __('Your modifications have been saved'); ?><br />
    <?php foreach( $drafts as $draft ): ?>
            <?php echo link_to($draft->getCreatedAt()
                            , 'draft/restore?objtype=' 
                                . $draft->getObjType() 
                                . '&objid=' . $draft->getObjId() 
                                . '&id=' . $draft->getId() 
                                . '&classname=blog&field=content'
                            , array('confirm' => 'Are you sure?'
                                , 'post' => true)) ?>
            <?php echo link_to('Preview'
                            , 'draft/show?id=' . $draft->getId()
                            , array('popup' => array('popupWindow'
                                                    , 'width=400,height=400,left=320,top=100'))) ?>
            <br />
    <?php endforeach; ?>
<?php endif; ?>
</div>
